package com.i5tong.mvpdemo.model;

import com.google.gson.Gson;
import com.i5tong.mvpdemo.bean.WeatherInfoContainer;


/**
 * Created by Steven on 15/2/1.
 */
public class WeatherInfoModel implements WeatherInfoModelInterface {
    private WeatherInfoContainer weatherInfoContainer;

    @Override
    public WeatherInfoContainer getWeatherInfoContainer() {
        return weatherInfoContainer;
    }

    @Override
    public void setWeatherInfoContainer(String weatherInfoContainerString) {
        WeatherInfoContainer weatherInfoContainer = new Gson().fromJson(weatherInfoContainerString, WeatherInfoContainer.class);
        this.weatherInfoContainer = weatherInfoContainer;
    }

}
